
<%@ page import="com.plan.Workplan" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'workplan.label', default: 'Workplan')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-workplan" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-workplan" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
		<div class="splitcontentleft">
			<ol class="property-list workplan">
					<g:if test="${workplanInstance?.planTitle}">
				<li class="fieldcontain">
					<span id="planTitle-label" class="property-label"><g:message code="workplan.planTitle.label" default="Plan Title" /></span>
					
						<span class="property-value" aria-labelledby="planTitle-label"><g:fieldValue bean="${workplanInstance}" field="planTitle"/></span>
					
				</li>
				</g:if>
					<g:if test="${workplanInstance?.workContent}">
				<li class="fieldcontain">
					<span id="workContent-label" class="property-label"><g:message code="workplan.workContent.label" default="Work Content" /></span>
					
						<span class="property-value" aria-labelledby="workContent-label"><g:fieldValue bean="${workplanInstance}" field="workContent"/></span>
					
				</li>
				</g:if>
				<g:if test="${workplanInstance?.worker}">
				<li class="fieldcontain">
					<span id="worker-label" class="property-label"><g:message code="workplan.worker.label" default="Worker" /></span>
					
						<span class="property-value" aria-labelledby="worker-label"><g:fieldValue bean="${workplanInstance}" field="worker"/></span>
					
				</li>
				</g:if>
				
				<g:if test="${workplanInstance?.workResult}">
				<li class="fieldcontain">
					<span id="workResult-label" class="property-label"><g:message code="workplan.workResult.label" default="Work Result" /></span>
					
						<span class="property-value" aria-labelledby="workResult-label"><g:fieldValue bean="${workplanInstance}" field="workResult"/></span>
					
				</li>
				</g:if>
			</ol>
			</div>
			<div class="splitcontentright">
			<ol class="property-list constructionReport">
				<g:if test="${workplanInstance?.startDate}">
					<li class="fieldcontain">
						<span id="startDate-label" class="property-label"><g:message code="workplan.startDate.label" default="Start Date" /></span>
						
							<span class="property-value" aria-labelledby="startDate-label"><g:formatDate date="${workplanInstance?.startDate}" format="yyyy-MM-dd hh:mm"/></span>
						
					</li>
					</g:if>
				
					<g:if test="${workplanInstance?.endDate}">
					<li class="fieldcontain">
						<span id="endDate-label" class="property-label"><g:message code="workplan.endDate.label" default="End Date" /></span>
						
							<span class="property-value" aria-labelledby="endDate-label"><g:formatDate date="${workplanInstance?.endDate}" format="yyyy-MM-dd hh:mm"/></span>
						
					</li>
					</g:if>
				<g:if test="${workplanInstance?.creater}">
				<li class="fieldcontain">
					<span id="creater-label" class="property-label"><g:message code="workplan.creater.label" default="Creater" /></span>
					
						<span class="property-value" aria-labelledby="creater-label"><g:fieldValue bean="${workplanInstance}" field="creater"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${workplanInstance?.dateCreated}">
				<li class="fieldcontain">
					<span id="dateCreated-label" class="property-label"><g:message code="workplan.dateCreated.label" default="Date Created" /></span>
					
						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${workplanInstance?.dateCreated}" format="yyyy-MM-dd hh:mm"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${workplanInstance?.lastUpdated}">
				<li class="fieldcontain">
					<span id="lastUpdated-label" class="property-label"><g:message code="workplan.lastUpdated.label" default="Last Updated" /></span>
					
						<span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${workplanInstance?.lastUpdated}" format="yyyy-MM-dd hh:mm"/></span>
					
				</li>
				</g:if>
				<g:if test="${workplanInstance?.remark}">
				<li class="fieldcontain">
					<span id="remark-label" class="property-label"><g:message code="workplan.remark.label" default="Remark" /></span>
					
						<span class="property-value" aria-labelledby="remark-label"><g:fieldValue bean="${workplanInstance}" field="remark"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${workplanInstance?.status}">
				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="workplan.status.label" default="Status" /></span>
					
						<span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${workplanInstance}" field="status"/></span>
					
				</li>
				</g:if>
			</ol>
		</div>
		<div class="clear"></div>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${workplanInstance?.id}" />
					<g:link class="edit" action="edit" id="${workplanInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
		<div id="edit-detail" class="content scaffold-edit" role="main">
			<g:render template="../workplanDetail/list" ></g:render>
		</div>
	</body>
</html>
